package com.company.cloud.user.modules.mgr.service;

import com.company.cloud.common.bean.LoginSimpleUserInfo;
import com.company.cloud.user.modules.api.response.PermissionModel;
import com.company.cloud.user.modules.mgr.controller.req.PermissionSaveParam;
import com.company.cloud.user.modules.mgr.controller.req.PermissionUpdateParam;

import java.util.List;

public interface PermissionMgrService {

	public List<PermissionModel> tree();

	public PermissionModel get(String code);

	public  PermissionModel save(PermissionSaveParam params,LoginSimpleUserInfo userInfo);

	public  PermissionModel update(PermissionUpdateParam params,LoginSimpleUserInfo userInfo);

	public void delete(String code,LoginSimpleUserInfo userInfo);
}
